package cn.edu.cxcyzx.service;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import cn.edu.cxcyzx.entity.Teacher;
import cn.edu.cxcyzx.supervisor.ResultDo;



public interface TeacherService {
	
	public void updateTea(Teacher tea);
	/**
	 * 根据教师工号删除教师记录
	 * @param teaId
	 */
	public void deleteTeaByTeaId(String teaId);
	/**
	 * 插入教师
	 * @param teacher
	 */
	@Transactional
	public void insertTea(Teacher teacher);
	
	
	public ResultDo<Teacher> selectByTeaName(String teaName);
	
	public ResultDo<List<Teacher>> getAllTea(String teaName);
}
